Part Number Hot Search : 
MBM29 29K4FK 00V1C4 9Y5V1 HC14D C341M 2N3505 MT2068
Product Description
Full Text Search
 

To Download HT48R50-28SDIP-B-0 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ht48cxx/ht48rxx 8-bit microcontroller series features operating voltage: 2.4v~5.2v bidirectional i/o lines with a selection of 18, 22, 32 and 56 lines one interrupt input programmable timer/event counters with overflow interrupts and a selection of one 8-bit counter, one 8-bit and one 16-bit count- ers, or two 16-bit counters on-chip crystal and rc oscillator watchdog timer program rom with size selection of 1k 14, 2k 14, 4k 15 and 8k 16 bits data ram with size selection of 64 8, 96 8, 160 8 and 224 8 bits halt function and wake-up feature to reduce power consumption 63 powerful instructions up to 0.5 m s instruction cycle with 8mhz system clock at v dd =5v all instructions in 1 or 2 machine cycles 14-bit/15-bit/16-bit table read instructions 2-level/4-level/8-level subroutine nesting bit manipulation instructions general description the ht48c10/48c30/48c50/48c70 are 8-bit high performance risc-like microcontrollers, specifically designed for multiple i/o product applications. these devices are suitable for use in products such as remote controllers, fan/light controllers, washing machine controllers, scales, toys, and various subsystem controllers. they all contain a halt feature to reduce power consumption. the major differences between these microcontrollers are attributed to vari- ations in sizes of the rom and ram, as well as bit number, counter number, i/o line number, and different level subroutine nesting. roughly speaking, the ht48c10 is a microcontroller with most economic features and the ht48c70 is one with the most features of the four micro- controllers. 1 25th may 99
selection table mask version part no. ht48c10 ht48c30 ht48c50 ht48c70 operating voltage 2.4v~5.2v 2.4v~5.2v 2.4v~5.2v 2.4v~5.2v external interrupt 1 1 1 1 internal interrupt 1 1 2 2 8-bit timer/event counter 1 1 1 0 16-bit timer/event counter 0 0 1 2 system oscillator crystal/rc crystal/rc crystal/rc crystal/rc watchdog timer 1 1 1 1 rom 1k 14 2k 14 4k 15 8k 16 ram 64 8 (40h~7fh) 96 8 (20h~7fh) 160 8 (60h~ffh) 224 8 (20h~ffh) i/o lines 18 22 32 56 instructions 63 63 63 63 stack levels 2 2 4 8 operating frequency 400khz~8mhz 400khz~8mhz 400khz~8mhz 400khz~8mhz power down mode ?? ? ? table read instructions ?? ? ? otp version part no. v dd f sys i/o pull-high mask version ht48r11 3.0v~5.2v 400k~4mhz no ht48c10 ht48r12 3.0v~5.2v 400k~4mhz yes ht48c10 ht48r31 3.0v~5.2v 400k~4mhz no ht48c30 ht48r32 3.0v~5.2v 400k~4mhz yes ht48c30 ht48r50 3.0v~5.2v 400k~4mhz yes ht48c50 ht48r51* 3.0v~5.2v 400k~4mhz no ht48c50 * under development ht48cxx/ht48rxx 2 25th may 99
block diagram of ht48c70 ht48cxx/ht48rxx 3 25th may 99
pin assignment ht48cxx/ht48rxx 4 25th may 99
note: for the dice form, the tmr0 and tmr1 pads have to be bonded to vdd or vss if the tmr0 and/or tmr1 pad are not used. the (tmr0) int indicates that the tmr0 pad should be bonded to the int pin. the pc5 (tmr1) indicates that the tmr1 pad should be bonded to the pc5 pin. ht48cxx/ht48rxx 5 25th may 99
pin description of ht48c10 pin name i/o mask option function pa0~pa7 i/o wake-up pull-high or none bidirectional 8-bit input/output ports each bit can be configured as a wake-up input by mask option. software instructions determine the cmos output or schmitt trigger input with or without pull high resistor (by mask option). pb0~pb7 i/o pull-high or none bidirectional 8-bit input/output ports software instructions determine the cmos output or schmitt trigger input with or without pull high resistor (by mask option). vss negative power supply, gnd int i external interrupt schmitt trigger input with pull high resistor edge trigger is activated during high to low transition. tmr i schmitt trigger input for timer/event counter pc0~pc1 i/o pull-high or none bidirectional 2-bit input/output ports software instructions determine the cmos output or schmitt trigger input with or without pull high resistor (by mask option). res i schmitt trigger reset input, active low vdd positive power supply osc1 osc2 i o crystal or rc osc1 and osc2 are connected to an rc network or a crystal (by mask option) for the internal system clock. in the case of rc operation, osc2 is the output terminal for 1/4 system clock. ht48cxx/ht48rxx 6 25th may 99
pin description of ht48c30 pin name i/o mask option function pa0~pa7 i/o wake-up pull-high or none bidirectional 8-bit input/output ports each bit can be configured as a wake-up input by mask option. software instructions determine the cmos output or schmitt trigger input with or without a pull high resistor (by mask option). pb0~pb7 i/o pull-high or none bidirectional 8-bit input/output ports software instructions determine the cmos output or schmitt trigger input with or without a pull high resistor (by mask option). vss negative power supply, gnd int i external interrupt schmitt trigger input with a pull high resistor. edge triggered is activated on a high to low transition. tmr i schmitt trigger input for timer/event counter pc0~pc5 i/o pull-high or none bidirectional 6-bit input/output ports software instructions determine the cmos output or schmitt trigger input with or without a pull high resistor (by mask option). res i schmitt trigger reset input, active low vdd positive power supply osc1 osc2 i o crystal or rc osc1 and osc2 are connected to an rc network or a crystal (by mask option) for the internal system clock. in the case of rc operation, osc2 is the output terminal for 1/4 system clock. ht48cxx/ht48rxx 7 25th may 99
pin description of ht48c50 pin name i/o mask option function pa0~pa7 i/o wake-up pull-high or none bidirectional 8-bit input/output ports each bit can be configured as a wake-up input by mask option. software instructions determine the cmos output or schmitt trigger input with or without a pull high resistor (by mask option). pb0~pb7 i/o pull-high or none bidirectional 8-bit input/output ports software instructions determine the cmos output or schmitt trigger input with or without a pull high resistor (by mask option). vss negative power supply, gnd int i external interrupt schmitt trigger input with a pull high resistor. edge triggered is activated on a high to low transition. tmr0 i schmitt trigger input for timer/event counter 0 tmr1 i schmitt trigger input for timer/event counter 1 pc0~pc7 i/o pull-high or none bidirectional 8-bit input/output ports software instructions determine the cmos output or schmitt trigger input with or without a pull high resistor (by mask option). res i schmitt trigger reset input, active low vdd positive power supply osc1 osc2 i o crystal or rc osc1 and osc2 are connected to an rc network or a crystal (by mask option) for the internal system clock. in the case of rc operation, osc2 is the output terminal for 1/4 system clock. pd0~pd7 i/o pull-high or none bidirectional 8-bit input/output port. software instructions determine the cmos output or schmitt trigger input with or without a pull high resistor (by mask option). ht48cxx/ht48rxx 8 25th may 99
pin description of ht48c70 pin name i/o mask option function pa0~pa7 i/o wake-up pull-high or none bidirectional 8-bit input/output ports each bit can be configured as a wake-up input by mask option. software instructions determine the cmos output or schmitt trigger input with or without pull high resistor (by mask option). pb0~pb7 i/o pull-high or none bidirectional 8-bit input/output ports software instructions determine the cmos output or schmitt trigger input (pull-high depends on mask option). vss negative power supply, gnd int i external interrupt schmitt trigger with pull high resistor edge trigger is activated during high to low transition. tmr0 i schmitt trigger input for timer/event counter 0 tmr1 i schmitt trigger input for timer/event counter 1 pc0~pc7 i/o pull-high or none bidirectional 8-bit input/output ports software instructions determine the cmos output or schmitt trigger input (pull-high depends on mask option). res i schmitt trigger reset input, active low vdd positive power supply osc1 osc2 i o crystal or rc osc1 and osc2 are connected to an rc network or a crystal (by mask option) for the internal system clock. in the case of rc operation, osc2 is the output terminal for 1/4 system clock. pd0~pd7 i/o pull-high or none bidirectional 8-bit input/output ports software instructions determine the cmos output or schmitt trigger input (pull-high depends on mask option). pe0~pe7 i/o pull-high or none bidirectional 8-bit input/output ports software instructions determine the cmos output or schmitt trigger input (pull-high depends on mask option). pf0~pf7 i/o pull-high or none bidirectional 8-bit input/output ports software instructions determine the cmos output or schmitt trigger input (pull-high depends on mask option). pg0~pg7 i/o pull-high or none bidirectional 8-bit input/output ports software instructions determine the cmos output or schmitt trigger input (pull-high depends on mask option). ht48cxx/ht48rxx 9 25th may 99
absolute maximum ratings supply voltage ....................... v dd C0.3v to 5.5v storage temperature................. C50 c to 125 c input voltage .................v ss C0.3v to v dd +0.3v operating temperature .............. C25 c to 70 c note: these are stress ratings only. stresses exceeding the range specified under absolute maxi- mum ratings may cause substantial damage to the device. functional operation of this device at other conditions beyond those listed in the specification is not implied and prolonged exposure to extreme conditions may affect device reliability. d.c. characteristics ta=25 c symbol parameter test conditions min. typ. max. unit v dd conditions v dd operating voltage 2.4 5.2 v i dd1 operating current (ht48c10 crystal osc) 3v no load f sys =4mhz 0.71.5 ma 5v 2 3 i dd2 operating current (ht48c10 rc osc) 3v no load f sys =2mhz 0.5 1 ma 5v 1 2 i dd3 operating current (ht48c30 crystal osc) 3v no load f sys =4mhz 0.71.5 ma 5v 2 3 i dd4 operating current (ht48c30 rc osc) 3v no load f sys =2mhz 0.5 1 ma 5v 1 2 i dd5 operating current (ht48c50 crystal osc) 3v no load f sys =4mhz 1 2 ma 5v 2.5 5 i dd6 operating current (ht48c50 rc osc) 3v no load f sys =2mhz 0.75 1.5 ma 5v 1.5 3 i dd7 operating current (ht48c70 crystal osc) 3v no load f sys =4mhz 1.5 3 ma 5v 3.4 6 i dd8 operating current (ht48c70 rc osc) 3v no load f sys =2mhz 1 2 ma 5v 2.1 4 i stb1 standby current (wdt enabled) 3v no load system halt 5 m a 5v 10 i stb2 standby current (wdt disabled) 3v no load system halt 1 m a 5v 2 ht48cxx/ht48rxx 10 25th may 99
symbol parameter test conditions min. typ. max. unit v dd conditions v il input low voltage for i/o ports 3v 0 0.9 v 5v 0 1.5 v ih input high voltage for i/o ports 3v 2.1 3 v 5v 3.5 5 v il1 input low voltage ( tmr, tmr0, tmr1, int) 3v 0 0.7 v 5v 0 1.3 v ih1 input high voltage ( tmr, tmr0, tmr1, int) 3v 2.3 3 v 5v 3.8 5 v il2 input low voltage ( res) 3v 1.5 v 5v 2.5 v ih2 input high voltage ( res) 3v 2.4 v 5v 4.0 i ol i/o ports sink current 3v v ol =0.3v 1.5 4 ma 5v v ol =0.5v 4 10 i oh i/o ports source current 3v v oh =2.7v C1 C2 ma 5v v oh =4.5v C2 C4.5 r ph pull-high resistance of i/o ports and int 3v 40 60 80 k w 5v 10 30 50 ht48cxx/ht48rxx 11 25th may 99
a.c. characteristics ta=25 c symbol parameter test conditions min. typ. max. unit v dd conditions f sys1 system clock (crystal osc) 3v 400 4000 khz 5v 400 8000 khz f sys2 system clock (rc osc) 3v 400 2000 khz 5v 400 3000 khz f timer timer i/p frequency (tmr, tmr0, tmr1) 3v 0 4000 khz 5v 0 4000 khz t wdtosc watchdog oscillator 45 90 180 m s 35 65 130 t wdt1 watchdog time-out period (rc) without wdt prescaler 12 23 45 ms 91735 t wdt2 watchdog time-out period (system clock) without wdt prescaler 1024 t sys t res external reset low pulse width 1 m s t sst system start-up timer period power-up or wake-up from halt 1024 t sys t int interrupt pulse width 1 m s note: t sys =1/f sys ht48cxx/ht48rxx 12 25th may 99
functional description the four microcontrollers of the ht48c10/ ht48c30/ht48c50/ht48c70 are constructed using basically the same principles. their dif- ferences lie in variations in sizes such as rom and ram as well as bit number, counter num- ber, i/o line number, and different level subrou- tine nesting bit number. the following is a more detailed description of the system architectures of the four microcontrollers. unless specified, the architecture stated below exists in these four microcontrollers. execution flow the system clock is derived from either a crystal or an rc oscillator. it is internally divided into four non-overlapping clocks. each instruction cycle consists of four system clock cycles. instruction fetching and execution are pipe- lined in such a way that a fetch takes one in- struction cycle while decoding and execution takes the next instruction cycle. the pipelining scheme causes each instruction to effectively execute in a cycle. if an instruction changes the program counter, two cycles are required to complete the instruction. program counter C pc the program counter (pc) is of different sizes ranging from 10 bits to 13 bits according to the microcontroller selected (10 bits for the ht48c10; 11 bits for the ht48c30; 12 bits for the ht48c50; 13 bits for the ht48c70). it con- trols a sequence in which the instructions stored in the program rom are executed. the contents of the pc can specify 1024, 2048, 4096, or 8192 addresses at maximum, according to the microcontroller (ht48c10/ht48c30/ ht48c50/ht48c70) chosen. after accessing a program memory word in or- der to fetch an instruction code, the contents of the pc is incremented by one. the pc then points to the memory word consisting of the next instruction code. when executing a jump instruction, conditional skip execution, loading a pcl register, a sub- routine call, an initial reset, an internal inter- rupt, an external interrupt, or returning from a subroutine, the pc manipulates a program transfer by loading the address corresponding to each instruction. the conditional skip is activated by instructions. once the condition is met, the next instruction, fetched during the current instruction execution, is discarded and a dummy cycle replaces it to get a proper instruction; otherwise it proceeds to the next instruction. the lower byte of the pc (pcl) is a readable and writeable register (06h). moving data into the pcl performs a short jump. the destination is within 256 locations. for a control transfer to take place, an addi- tional dummy cycle is required. execution flow ht48cxx/ht48rxx 13 25th may 99
mode contents of program counter (m bits) initial reset 0000h external interrupt 0004h timer/event counter 0 overflow 0008h timer/event counter 1 overflow 000ch skip pc+2 loading pcl low byte replaced by instruction code jump, call branch instruction code return from subroutine stack register notes: m=10 for the ht48c10 m=11 for the ht48c30 m=12 for the ht48c50 m=13 for the ht48c70 program memory C rom the program memory (rom) is used to store the program instructions that are to be executed. it contains data, table, and interrupt entries, and is organized into 1024 14 bits, 2048 14 bits, 4096 15 bits, or 8192 16 bits according to the mi- crocontroller (ht48c10/ ht48c30/ht48c50/ ht48c70) selected. these bits are all addressed by the pc and table pointer. certain locations in the rom stated below are reserved for special usage in the four microcon- trollers except location 00ch which is used for the ht48c50/ht48c70 exclusively. location 000h location 000h is reserved for program in- itialization. after chip reset, the program al- ways begins execution at this area. location 004h location 004h is reserved for external inter- rupt service program. if the int input pin is activated, the interrupt is enabled, and the stack is not full, the program begins execution at location 004h. location 008h location 008h is reserved for the timer/event counter interrupt service program of the ht48c10/ht48c30 and for the timer/event counter 0 interrupt service program of the ht48c50/ht48c70. if the timer interrupt re- sults from a timer/event counter overflow of the ht48c10/ht48c30 or a timer/event counter 0 overflow of the ht48c50/ht48c70, and the interrupt is enabled, and the stack is not full, the program begins execution at loca- tion 008h. program memory ht48cxx/ht48rxx 14 25th may 99
location 00ch location 00ch is reserved for the timer/ event counter 1 interrupt service program of the ht48c50/ht48c70 only. if the timer inter- rupt results from a timer/event counter 1 overflow, the interrupt is enabled, and the stack is not full, the program begins execution at location 00ch. table location any location in the rom can be used as a lookCup table. the instructions tabrdc [m] (the current page, 1 page=256 words) and tabrdl [m] (the last page) transfer the con- tents of the lower-order byte to the specified data memory, and the higher-order byte to tblh (08h). only the destination of the lower-order byte in the table is well-defined, and the higher-order byte of the table word is transferred to the table higher-order byte register (tblh). the tblh is read only. the table pointer (tblp), on the other hand, is a read/write register (07h) used to indicate the table location. before accessing the table, the location should be placed in the tblp. the tblh is read only and cannot be restored. if the main routine and the isr (interrupt serv- ice routine) both employ the table read in- struction, the contents of the tblh in the main routine is likely to be changed by the table read instruction used in the isr. errors will then occur. hence, simultaneously using the table read instruction in the main routine and the isr should be avoided. nonetheless, if the application of the table read instruction to both the main routine and the isr cannot be avoided, interrupts should be disabled prior to the table read instruction, and they should not be enabled until the tblh is backed-up. all the table related instructions require 2 cycles to complete an operation. these areas may function as a normal pro- gram memory depending upon the users re- quirements. stack register C stack the stack register is a special memory port used to save the contents of the pc. the stack can be organized into 2, 4, or 8 levels according to the microcontroller selected (2 levels for the ht48c10/ht48c30, 4 levels for the ht48c50, 8 levels for the ht48c70). the register is nei- ther part of the data nor part of the program, and is neither readable nor writeable. any acti- vated level is indexed by a stack pointer (sp) and is neither readable nor writeable. at a sub- routine call or interrupt acknowledgment, the contents of the pc is pushed onto the stack. at the end of a subroutine or an interrupt routine, signaled by a return instruction (ret or reti), the contents of the pc is restored to its previous value from the stack. after chip reset, the sp will point to the top of the stack. if the stack is full and a non-masked interrupt takes place, the interrupt request flag is recorded but the acknowledgment is still inhibited. after the stack pointer is decremented (by ret or reti), the interrupt will be serviced. this feature prevents the occurrence of stack overflow, allow- instruction(s) table location *m~*8 * 7 * 6 * 5 * 4 * 3 * 2 * 1 * 0 tabrdc [m] pm~p8 @7 @6 @5 @4 @3 @2 @1 @0 tabrdl [m] 1~1 @7 @6 @5 @4 @3 @2 @1 @0 table location notes: * m~ * 0: bits of table location @7~@0: bits of table pointer pm~p8: bits of current program counter m=9 for the ht48c10 m=10 for the ht48c30 m=11 for the ht48c50 m=12 for the ht48c70 ht48cxx/ht48rxx 15 25th may 99
ing the programmer to use the structure easily. likewise, if the stack is full and a call is subsequently executed, a stack overflow will occur and the first entry will be lost (only the most recent four return addresses will be stored). data memory C ram the data memory (ram) is composed of bits ranging from 81 8, 113 8, 184 8, or 255 8, de- pending on the microcontroller chosen (ht48c10/ ht48c30/ht48c50/ht48c70). it is divided into two functional groups, i.e., special function registers and general purpose data memory (of 64 8, 96 8, 160 8, or 224 8 bits, depending on the microcontroller selected (ht48c10/ ht48c30/ht48c50/ht48c70). most components of the two functional groups are readable/writable, but some are read-only. of the two functional groups, the special func- tion registers of the four microcontrollers con- sist of a program counter lower-order byte register (pcl;06h), an accumulator (acc; 05h), a table pointer (tblp;07h), a table higher-order byte register (tblh;08h), a status register (status;0ah), an interrupt control register (intc;0bh), a watchdog timer option setting register (wdts;09h), an indirect addressing register (00h), a memory pointer register (mp;01h), a timer/event counter (tmr;0dh), a timer/event counter control reg- ister (tmrc;0eh), i/o registers (pa;12h,pb;14h, pc;16h), and i/o control reg- isters (pac;13h,pbc;15h,pcc;17h). but of the ht48c50/ht48c70, the following compo- nents are further divided into two or several sub-components. first, the indirect addressing register is divided into two registers involving indirect addressing register 0 (00h) and indi- rect addressing register 1 (02h). second, the memory pointer register is also comprised by two registers involving memory pointer register 0 (mp0;01h) and memory pointer register 1 (mp1;03h). third, the timer/event counter reg- ister is organized by two registers according to different orders of byte, namely timer/event higher-order byte register and timer/event lower-order byte register, both of which are fur- ther divided into timer/event counter 0 higher- order byte register (tmr0h; 0ch), timer/ event counter 1 higher-order byte register (tmr1h;0fh), timer/event counter 0 lower-or- der byte register (tmr0l;0dh), and timer/event counter 1 lower-order byte register (tmr1l;10h). fourth, the timer/event counter control register is divided into two registers involving timer/event counter 0 control register ram mapping ht48cxx/ht48rxx 16 25th may 99
(tmr0c;0eh) and timer/event counter 1 con- trol register (tmr1c;11h). fifth, the entire number of i/o registers is expanded from 3 to 6 (pa;12h,pb;14h,pc;16h,pd;18h,pe;1ah, pf;1ch,pg; 1eh). finally, the number of i/o control registers is also doubled (pac;13h, pbc;15h,pcc;17h,pdc;19h,pec;1bh, pfc;1dh,pgc;1fh). the remaining space be- fore the 20h of the four microcontrollers are all reserved for future expansion usage. reading these remaining locations will return the result to 00h. the general purpose data memory, ad- dressed from 40h~7fh of the ht48c10, 20h~7fh of the ht48c30, 60h~ffh of the ht48c50, or 20h~ffh of the ht48c70 accord- ing to the microcontroller selected, is used for data and control information under instruction commands. all the ram areas can directly execute arithme- tic, logic, increment, decrement, and rotate op- erations. except some dedicated bits, each bit in the ram can be set and reset by the set [m].i and clr [m].i instructions, respectively. these ram areas are indirectly accessible through the memory pointer register(s) mp (01h) of the ht48c10/ht48c30 or mp0 (01h) and mp1 (03h) of the ht48c50/ht48c70. indirect addressing register of the four microcontrollers, the ht48c10/ ht48c30 make use of location 00h whereas the ht48c50/ht48c70 of locations 00h and 02h as indirect addressing registers that are not physically implemented. any read/write opera- tion of [00h] or of [00h] and [02h] accesses the ram pointed to by mp (01h) or by mp0 (01h) and mp1 (03h) respectively according to the microcontroller chosen. reading location 00h or 02h indirectly will return the result 00h. writ- ing it indirectly will, result to no operation. the function of data movement between two indirect addressing registers is not supported. the memory pointer register mp of the ht48c10/ht48c30 or mp0 and mp1 of the ht48c50/ht48c70 are of 7 bits or 8 bits wide respectively, and can be used to access the ram by combining the corresponding indirect ad- dressing registers. the bit 7 of mp (ht48c10/ht48c30) is undefined and reading will return the result 1. any writing operation to mp will only transfer the lower 7-bit data to mp. accumulator acc the accumulator (acc) relates to the alu op- erations. it is also mapped to location 05h of the ram and is capable of operating with immedi- ate data. the data movement between two data memories will pass through the acc. arithmetic and logic unit C alu this circuit performs 8-bit arithmetic and logic operations. it provides the following functions: arithmetic operations (add, adc, sub, sbc, daa) logic operations (and, or, xor, cpl) rotation (rl, rr, rlc, rrc) increment and decrement (inc, dec) branch decision (sz, snz, siz, sdz, etc.) the alu saves the results of the data operation and change the status register as well. status register C status the status register (0ah) is of 8 bits wide and consists of a zero flag (z), a carry flag (c), an auxiliary carry flag (ac), an overflow flag (ov), a power down flag (pd), and a watchdog time- out flag (to). the register also records the status information and controls the operation sequence. except the to and pd flags, bits in the status register can all be altered by instructions, simi- lar to the case with other registers. any data written into the status register will not change the to or pd flags. but the operations related to the status register may lead to different re- sults from those intended. the to and pd flags can be changed by system power up, watchdog timer overflow, executing the halt instruc- tion, or clearing the watchdog timer. the z, ov, ac, and c flags all reflect the status of the latest operations. ht48cxx/ht48rxx 17 25th may 99
labels bits function c0 c is set if the operation results in a carry during an addition operation or if a borrow does not take place during a subtraction operation; otherwise c is cleared. also it is affected by a rotate through carry instruction. ac 1 ac is set if the operation results in a carry out of the low nibbles in addition or no borrow from the high nibble into the low nibble in subtraction; otherwise ac is cleared. z2 z is set if the result of an arithmetic or logic operation is zero; otherwise z is cleared. ov 3 ov is set if the operation results in a carry into the highest-order bit but not a carry out of the highest-order bit, or vice versa; otherwise ov is cleared. pd 4 pd is cleared by either a system power-up or executing the clr wdt instruction. pd is set by executing the halt instruction. to 5 to is cleared by a system power-up or executing the clr wdt or halt instruction. to is set by a wdt time-out. 6 undefined, read as 0 7 undefined, read as 0 status register on entering the interrupt sequence or execut- ing the subroutine call, the status register will not be automatically pushed onto the stack . if the contents of the status is important and the subroutine can corrupt the status register, the programmer should take precautions to save it properly. interrupt the four microcontrollers all provide an exter- nal interrupt and internal timer/event counter interrupts. the interrupt control register (intc;0bh) contains interrupt control bits for setting the enable/disable mode and the interrupt request flags. once an interrupt subroutine is serviced, the remaining interrupts will all be blocked (by clearing the emi bit). this scheme may prevent any further interrupt nesting. other interrupt requests may happen during this interval but only the interrupt request flag will be recorded. if a certain interrupt requires servicing within the service routine, the programmer may set the emi bit and the corresponding bit of intc so as to allow interrupt nesting. if the stack is full, the interrupt request will not be acknowledged, even if the related interrupt is enabled, until the sp is decremented. if immediate servicing is de- sired, the stack should be prevented from be- coming full. all these interrupts have a wake-up capability. as an interrupt is serviced, a control transfer occurs by pushing the pc onto the stack and then by branching it to subroutines at the speci- fied location(s) in the rom. only the contents of the pc can be pushed onto the stack. if the contents of the register and of the status regis- ter (status) are altered by the interrupt serv- ice program which corrupts the desired control sequence, the programmer should save these contents first. the external interrupt is triggered by a high to low transition of the int, and the related inter- rupt request flag (eif; bit 4 of intc) is then set. when the interrupt is enabled, the stack is not full, and the external interrupt is active, a sub- routine call to location 04h will occur. the inter- rupt request flag (eif) and emi bits will also be cleared to disable other interrupts. of the four microcontrollers, the internal timer/event counter interrupt of the ht48c10/ ht48c30 is initialized by setting the timer/ ht48cxx/ht48rxx 18 25th may 99
register bit no. label function intc (0bh) 0emi control the master (global) interrupt (1= enabled; 0= disabled) 1 eei control the external interrupt (1= enabled; 0= disabled) 2 et0i control the timer/event counter 0 interrupt (1= enabled; 0= disabled) 3et1i control the timer/event counter 1 interrupt (for the ht48c50/ht48c70 only) (1= enabled; 0= disabled) 4eif external interrupt request flag (1= active; 0= inactive) 5 t0f internal timer/event counter 0 request flag (1= active; 0= inactive) 6 t1f internal timer/event counter 1 request flag (for the ht48c50/ht48c70 only) (1= active; 0= inactive) 7 unused bit, read as 0 intc register event counter interrupt request flag (tf; bit 5 of intc), that is caused by a timer overflow. when the interrupt is enabled, and the stack is not full, and the tf bit is set, a subroutine call to location 08h will occur. the related interrupt request flag (tf) will be reset and the emi bit will be cleared to disable further interrupts. the internal timer/event counter of the ht48c50/ht48c70, is composed of two inter- rupts, namely internal timer/event counter 0 interrupt and timer/event counter 1 interrupt. the internal timer/event counter 0 interrupt is initialized by setting the timer/event counter 0 interrupt request flag (t0f; bit 5 of intc) which is caused by a timer/event counter 0 over- flow. after the interrupt is enabled, the stack is not full, and the t0f bit is set, a subroutine call to location 08h will occur. the related interrupt request flag (t0f) will be reset and the emi bit be cleared to disable further interrupts. on the other hand, the timer/event counter 1 interrupt is operated in the same manner as the timer/ event counter 0. the related interrupt control bits et1i and t1f of the timer/event counter 1 are bit 3 and bit 6 of the intc, respectively. during the execution of an interrupt subroutine of the four microcontrollers, other interrupt ac- knowledgments are all held until the reti in- struction is executed or the emi bit and the related interrupt control bit are both set to 1 (when the stack is not full). to return from the interrupt subroutine, the ret or reti instruc- tion may be invoked. the reti will set the emi bit in order to enable an interrupt service whereas the ret will not. interrupts that occur in an interval between the rising edges of two consecutive t2 pulses are serviced on the latter of the two t2 pulses if the corresponding interrupts are enabled. in case of simultaneous requests, the following table shows the priority that is applied. these can be masked by resetting the emi bit. no. interrupt source priority vector a external interrupt 1 04h b timer/event counter 0 overflow 208h *c timer/event counter 1 overflow 30ch * note: c applies only to the ht48c50/ ht48c70 ht48cxx/ht48rxx 19 25th may 99
the timer/event counter interrupt request flag (tf), external interrupt request flag (eif), en- able timer/event counter bit (eti), enable exter- nal interrupt bit (eei), and enable master interrupt bit (emi) constitute an interrupt con- trol register (intc) of the ht48c10/ht48c30 which is located at 0bh in the ram. on the other hand, the timer/event counter 0/1 inter- rupt request flag (t0f/t1f), external interrupt request flag (eif), enable timer/event counter 0/1 bit (et0i/et1i), enable external interrupt bit (eei), and enable master interrupt bit (emi) make up the interrupt control register (intc) of the ht48c50/ht48c70 which is located at 0bh in the ram. emi, eei, and eti, of the ht48c10/ht48c30 or emi, eei, et0i, and et1i of the ht48c50/ht48c70 are all used to control the enable/disable status of interrupts. these bits prevent the requested interrupt from being serviced. once the interrupt request flags (tf, eif of the ht48c10/ht48c30 or t0f, t1f, eif of the ht48c50/ht48c70) are set, they will remain in the intc register until the inter- rupts are all serviced or cleared by a software instruction. it is suggested that a program should not em- ploy the call subroutine within the inter- rupt subroutine, since its operation within the interrupt subroutine may damage the original control sequence, and interrupts often occur in an unpredictable manner or it may need imme- diate servicing for certain applications. given this, if only one stack is left and enabling the interrupt is not well controlled, the original con- trol sequence may be ruined as a result of operating the call subroutine in the interrupt subroutine. oscillator configuration there are 2 oscillator circuits available, namely rc oscillator and crystal oscillator, decided by mask options. both are designed for system clocks. no matter what type of oscillator is cho- sen, the signal supports the system clock. the halt mode stops the system oscillator and ig- nores any external signals so as to conserve power. of the two oscillator types, if an rc oscillator is used, an external resistor between osc1 and vdd is required and its resistance ranges from 51k w to 1m w . the system clock, divided by 4, is available on osc2 (nmos open drain output), which can be used to synchronize external logic. the rc oscillator provides the most cost effec- tive solution. however, the frequency of the os- cillation may vary with vdd, temperature and the chip itself due to process variations. it is, therefore, not suitable for timing sensitive op- erations where accurate oscillator frequency is desired. on the other hand, if the crystal oscil- lator is used, a crystal across osc1 and osc2 is needed to provide the feedback and phase shift required for the crystal oscillator. no other external components are required. instead of a crystal, the resonator can also be connected be- tween osc1 and osc2 to derive a frequency reference, but two external capacitors in osc1 and osc2 are required. the wdt oscillator is a free running on-chip rc oscillator, and no external components are re- quired. even if the system enters the power down mode, the system clock is stopped but the wdt oscillator still works with a period of ap- proximately 78 m s. the wdt oscillator can be disabled by mask option to conserve power. watchdog timer C wdt the clock source of the wdt is implemented by a dedicated rc oscillator (wdt oscillator) or an instruction clock (system clock divided by 4), decided by mask options. the wdt is designed to prevent a software malfunction or sequence from jumping to an unknown location with un- predictable results. the wdt can be disabled by mask option. if the wdt is disabled, all the executions related to the wdt may lead to no operation. system oscillator ht48cxx/ht48rxx 20 25th may 99
watchdog timer if the internal wdt oscillator (rc oscillator with a period of 78 m s normally) is selected, it is first divided by 256 (8 stages) to derive a nomi- nal time-out period of about 20ms. this time- out period may vary with temperature, vdd, and process variations. by invoking the wdt prescaler, longer time-out periods can be real- ized. writing data to ws2, ws1, and ws0 (bit 2,1,0 of the wdts) can lead to different time- out periods. if the values of ws2, ws1, and ws0 all equal to 1, the division ratio is up to 1:128, and the maximum time-out period is 2.6 sec- onds. but if the wdt oscillator is disabled, the wdt clock may still come from the instruction clock and operate in the same manner except that in the halt state the wdt may stop counting and lose its protecting purpose. in this situation the logic can be restarted by external logic. the high nibble and bit 3 of the wdts are reserved for user defined flags, and the programmer may use these flags to indicate some specified status. ws2 ws1 ws0 division ratio 000 1:1 001 1:2 010 1:4 011 1:8 1 0 0 1:16 1 0 1 1:32 1 1 0 1:64 1 1 1 1:128 wdts register if the device operates in a noisy environment, using the on-chip rc oscillator (wdt osc) is strongly recommended, since the halt will ter- minate the system clock. the overflow of wdt under normal operation can initialize chip reset and set the status bit to. but in the halt mode, the overflow will initialize a warm reset, and only the pc and sp are reset to zero. to clear the contents of wdt (the wdt prescaler included), three methods can be adopted, i.e., external reset (a low level to res), software instruction(s), and a halt instruction. the software instruction(s) consists of clr wdt and the other set clr wdt1 and clr wdt2. of these two types of instructions, only one type can be active de- pending on mask option clr wdt times selection option. if the clr wdt is chosen (i.e., clrwdt times equal one), any execution of the clr wdt instruction will clear the wdt. in the case that the clr wdt1 and clr wdt2 are chosen (i.e., clrwdt times equal two), these two instructions should be executed to clear the wdt; otherwise, the wdt may reset the chip due to time-out. power down operation C halt the halt mode is initialized by the halt instruction and results in the following. the system oscillator turns off but the wdt oscillator keeps running (if the wdt oscillator is selected). the contents of the onCchip ram and regis- ters remain unchanged. the wdt and wdt prescaler are cleared and recount (if the wdt clock comes from the wdt oscillator). all i/o ports maintain their original status. the pd flag is set and the to flag is cleared. the system can quit the halt mode by exter- ht48cxx/ht48rxx 21 25th may 99
nal reset, interrupt, external falling edge signal on port a, or a wdt overflow. an external reset may cause device initialization, and the wdt overflow performs a warm reset. examining the to and pd flags, the reason for chip reset is determined. the pd flag is cleared by system power-up or executing the clr wdt instruction, and is set by executing the halt instruction. the to flag is set if the wdt time-out occurs, and causes a wake-up that resets the pc and sp only. the others maintain their original status. the port a wake-up and interrupt methods can be considered as a continuation of normal exe- cution. each bit in port a can be independently selected to wake up the device by mask option. awakening from an i/o port stimulus, the pro- gram will resume execution of the next instruc- tion. on the other hand, awakening from an interrupt, two sequences may happen. if the related interrupt(s) is disabled or the inter- rupt(s) is enabled but the stack is full, the pro- gram will resume execution at the next instruction. but if the interrupt is enabled and the stack is not full, the regular interrupt re- sponse takes place. when wake-up event(s) occurs, it takes 1024 t sys (system clock period) to resume normal operation. that is to say, a dummy period is inserted after the wake-up. if the wake-up re- sults from an interrupt acknowledgment, the actual interrupt subroutine execution will be delayed by more than one cycle. but if the wake- up results in the next instruction execution, the instruction will execute immediately after the dummy period is finished. if an interrupt re- quest flag is set to 1 before entering the halt mode, the make-up function of the related inter- rupt will be disabled. to minimize power consumption, all the i/o pins should be carefully managed before enter- ing the halt status. reset there are three ways in which reset may occur: res is reset during normal operation res is reset during halt wdt timeout is reset during normal operation wdt time-out during the halt is different from other chip reset conditions, for it can per- form a warm reset that resets only pc and sp and leaves the other circuits at their original state. some registers remain unchanged during any other reset conditions. most of the registers are reset to the initial condition when the reset conditions are met. by examining the pd flag and to flag, the program distinguishes between different chip resets. to pd reset conditions 00 res reset during power-up uu res reset during normal operation 01 res wake-up halt reset timing chart reset circuit reset configuration ht48cxx/ht48rxx 22 25th may 99
to pd reset conditions 1u wdt time-out during normal operation 1 1 wdt wake-up halt note: u means unchanged to guarantee that the system oscillator is started and stabilized, the sst (system start- up timer) provides an extra-delay. the extra- delay delays 1024 system clock pulses when the system powers up or awakes from the halt state. when the system power-up occurs, the sst de- lay is added during the reset period. but when the reset comes from the res pin, the sst delay is disabled. any wake-up from halt will enable the sst delay. the status of the chip reset of the functional units are as shown. pc 000h interrupt disabled prescaler cleared wdt cleared after a master reset, wdt begins counting. timer/event counter (0/1) off input/output ports input mode sp point to the top of the stack timer/event counter there are two timer/event counters imple- mented in the four microcontrollers. of the four microcontrollers, the timer/event counter of the ht48c10/ht48c30 contains an 8-bit program- mable count-up counter. on the other hand, the timer/event counter of the ht48c50/ht48c70 composes of two counters, namely timer/event counter 0 and timer/event counter 1. the timer/event counter 0 contains a 16-bit pro- grammable counter, and the timer/event counter 1 contains an 8-bit programmable count-up counter of the ht48c50. the timer/event counters 0 and 1 of the ht48c70 both contain a 16-bit programmable count-up counter. the source of the clock of the four mi- crocontrollers may come from an external source or the system clock divided by 4. if the internal instruction clock is applied, only one reference time-base is available. the external clock input, on the other hand, allows the user to count external events, measure time inter- vals or pulse width, or generate an accurate time base. of the ht48c10/ht48c30, there are two regis- ters related to the timer/event counter, i.e., tmr ([0dh]) and tmrc ([0eh]). there are two physical registers mapped to the tmr location. writing tmr puts the starting value in the timer/event counter preload register while reading tmr gets the contents of the timer/ event counter. the tmrc, on the other hand, is a timer/event counter control register. timer/event counter 0/1 ht48cxx/ht48rxx 23 25th may 99
the states of the special function registers are summarized in the following table: register reset (power on) wdt time-out (normal operation) res reset (normal operation) res reset (halt) wdt time-out* (halt) tmr1h xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu tmr1l xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu tmr1c 00-0 1--- 00-0 1--- 00-0 1--- 00-0 1--- uu-u u--- tmr0h xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu tmr0l xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu tmr0c 00-0 1--- 00-0 1--- 00-0 1--- 00-0 1--- uu-u u--- pc 000h 000h 000h 000h 000h mp0 xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu mp1 xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu acc xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu tblp xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu tblh xxxx xxxx uuuu uuuu uuuu uuuu uuuu uuuu uuuu uuuu status --00 xxxx --1u uuuu --uu uuuu --01 uuuu --11 uuuu intc -000 0000 -000 0000 -000 0000 -000 0000 -uuu uuuu wdts 0000 0111 0000 0111 0000 0111 0000 0111 uuuu uuuu pa 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pac 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pb 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pbc 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pc 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pcc 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pd 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pdc 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pe 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pec 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pf 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pfc 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pg 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu pgc 1111 1111 1111 1111 1111 1111 1111 1111 uuuu uuuu note: * means warm reset u means unchanged x means unknown C means undefined the bits of the special function registers are denoted as C if they are not defined in the microcontrollers. ht48cxx/ht48rxx 24 25th may 99
of the ht48c50/ht48c70, the timer/event counter is comprised by two counters, i.e., timer/event counter 0 and timer/event counter 1. there are three registers related to the timer/event counter 0, namely tmr0h (0ch), tmr0l (0dh), and tmr0c (0eh). writing tmr0l only writes the data into a low byte buffer, but writing tmr0h writes the data along with the contents of the low byte buffer into the timer/event counter 0 preload register (16-bit). the timer/event counter 0 preload reg- ister is changed by writing the tmr0h opera- tions, and writing tmr0l keeps the timer/ event counter 0 preload register unaltered. also, reading the tmr0h latches the tmr0l into the low byte buffer in order to avoid the false timing problem. then, reading the tmr0l will return the contents of the low byte buffer. in other words, the low byte of the timer/event counter 0 cannot be read directly. instead it has to read the tmr0h first in order to make the low byte contents of the timer/event counter 0 latched into the buffer. on the other hand, there are also three registers related to the timer/event counter 1, namely tmr1h (0fh), tmr1l (10h), and tmr1c (11h). the timer/ event counter 1 operates in the same manner as the timer/event counter 0. the tmr0c is a timer/event counter 0 control register defining the timer/event counter 0 op- tions. the timer/event counter 1 has the same options as the timer/event counter 0 and is de- fined by tmr1c. the timer/event counter control registers of the four microcontrollers are all used to define the operation mode, counting enable or disable, and active edge. the tm0 and tm1 bits define the operation mode. the event count mode is used to count external events, which means that the clock source comes from an external pin tmr of the ht48c10/ht48c30 or tmr0/tmr1 of the ht48c50/ht48c70. the timer mode functions as a normal timer with the clock source coming from the instruction clock. the pulse width measurement mode can be used to count the high or low level duration of the external signal tmr of the ht48c10/ht48c30 or tmr0/tmr 1 of the ht48c50/ht48c70. the counting is based on the instruction clock. in the event count or timer mode, once the timer/event counter starts counting, it will count from the current contents in the timer/event counter to ffh of the ht48c10/ht48c30/ ht48c50 (tmr1) or to ffffh of the ht48c50 (tmr0)/ht48c70. if an overflow occurs, the counter is reloaded from the timer/ event counter preload register and generates the corresponding interrupt request flag tf (bit 5 of intc) of the ht48c10/ht48c30 or t0f/t1f (bit 5/6 of intc) of the ht48c50/ ht48c70 at the same time. label bits function 0~2 unused bits, read as 0 te 3 to define tmr0/tmr1 active edge of the timer/event counter (0= active on low to high; 1= active on high to low) ton 4 to enable/disable timer counting (0= disabled; 1= enabled) 5 unused bits, read as 0 tm0 tm1 6 7 to define the operating mode 01= event count mode (external clock) 10= timer mode (internal clock) 11= pulse width measurement mode 00= unused tmr0c/tmr1c register ht48cxx/ht48rxx 25 25th may 99
in the pulse width measurement mode with the values of the ton and te bits equal to one, if the tmr0/ tmr1 has received a transient from low to high (or high to low; if the te bit is 0) it will start counting until the tmr of the ht48c10/ht48c30 or tmr0/tmr1 of the ht48c50/ ht48c70 returns to the original level and resets the ton. the measured result re- mains in the timer/event counter even if the activated transient happens again. in other words, only one cycle measurement can be done. until setting the ton, the cycle measurement will re-function as long as it receives further transient pulse. in this operation mode, the timer/event counter starts counting according not to the logic level but to the transient edges. in the case of counter overflows, the counter is reloaded from the timer/event counter preload register and issues an interrupt request just like the other two modes. to enable the counting operation, the timer on bit (ton; bit 4 of tmrc of the ht48c10/ ht48c30 or bit 4 of tmr0c/tmr1c of the ht48c50/ht48c70) should be set to 1. in the pulse width measurement mode, the ton will be cleared automatically after the measure- ment cycle is complete. but in the other two modes the ton can only be reset by instruc- tions. the overflow of the timer/event counter is one of the wake-up sources. no matter what the operation mode is, writing a 0 to eti of the ht48c10/ht48c30 or to et0i/et1i of the ht48c50/ht48c70 can disable the correspond- ing interrupt service. in the case of timer/event counter off condi- tion, writing data to the timer/event counter preload register also reloads that data to the timer/event counter. but if the timer/event counter is turned on, data written to the timer/event counter is reserved only in the timer/event counter preload register. the timer/event counter will go on operating un- til an overflow occurs. after the timer/event counter (reading tmr of the ht48c10/ht48c30 or tmr0h/ tmr1h of the ht48c50/ht48c70) is read, the clock is blocked to avoid errors. as this may results in a counting error, blocking of the clock should be taken into account by the programmer. input/output ports there are various numbers of bidirectional in- put/output lines in the four microcontrollers. the ht48c10 includes 18 bidirectional in- put/output lines, labeled from pa to pc, which are mapped to the [12h], [14h], or [16h] of the ram, respectively. the ht48c30 contains 22 bidirectional input/output lines, labeled from pa to pc, which are mapped to [12h], [14h], or [16h], respectively. the ht48c50 consists of 32 input/output ports ht48cxx/ht48rxx 26 25th may 99
bidirectional input/output lines, labeled from pa to pd, which are mapped to the [12h], [14h], [16h], or 18h], respectively. finally, the ht48c70 contains 56 bidirectional input/out- put lines, labeled from pa to pg, which are mapped to the ram of [12h], [14h], [16h], [18h], [1ah], [1ch], and [1eh], respectively. of the four microcontrollers, all of these i/o ports can be used for input and output operations. for the input operation, these ports are non-latch- ing, i.e., the inputs should be ready at the t2 rising edge of the instruction mov a,[m] (m=12h, 14h, 16h, 18h, 1ah, 1ch, or 1eh). for the output operation, all data are latched and remain unchanged until the output latch is rewritten. each i/o line has its own control register (pac, pbc, pcc, pdc, pec, pfc, pgc (the fist three registers pac, pbc, pcc are all used by the four microcontrollers; the register pdc is extra- used by the ht48c50; all the seven registers are applied in the ht48c70) to control the in- put/ output configuration. with this control reg- ister, cmos output or schmitt trigger input with or without pull-high resistor (by mask op- tion) structures can be reconfigured dynami- cally (i.e., on-the-fly) under software control. to function as an input, the corresponding latch of the control register must be written with a 1. the pull-high resistance shows itself automat- ically if the pull-high option is selected. the input source(s) also depends on the control reg- ister. if the value of the control register bit is 1, the input will read the pad state. but if the value of the control register bit is 0, the con- tents of the latches will be moved to the internal bus. the latter is possible in read-modify- write instruction. for the output function, cmos is the only configuration. these control registers are mapped to locations 13h, 15h, 17h, 19h, 1bh, 1dh and 1fh (the first three locations 13h, 15h, 17h exist in the four micro- controllers; the location 19h is used for the ht48c50; all the 7 locations are applied in the ht48c70). after a chip reset, these input/output lines stay at the high level or floating (by mask option). each bit of these input/output latches can be set or cleared by the set [m].i or clr [m].i (m=12h, 14h, 16h, 18h, 1ah, 1ch or 1eh (the first three options, namely 12h, 14h, and 16h, exist in the four microcontrollers; the ht48c50 is provided with an extra option of 18h; these seven options all exist in the ht48c70) instruc- tion. some instructions first input data and then fol- low the output operations. for example, the set [m].i, clr [m].i, cpl [m] and cpla [m] instructions read the entire port states into the cpu, execute the defined operations (bit-opera- tion), and then write the results back to the latches or the accumulator. each line of port a has the capability to wake-up the device. mask option the following table illustrates the five kinds of mask option provided. all these options have to be defined to ensure proper system functioning. no. mask option 1 osc type selection. this option is to decide if an rc or crystal oscillator is chosen as system clock. if the crystal oscillator is selected, the xst (crystal start-up timer) default is activated; otherwise the xst is disabled. 2 wdt source selection. there are three types of selection: on-chip rc oscillator, instruction clock or disable the wdt. 3 clrwdt times selection. this option defines the way of clearing the wdt by instruction. once means that the clr wdt instruction can clear the wdt. twice means only if both of the clr wdt1 and clr wdt2 instructions have been executed, the wdt can be cleared. 4 wake-up selection. this option defines the activity of the wake-up function. external i/o pins (pa only) all have the capability to wake-up the chip from a halt. ht48cxx/ht48rxx 27 25th may 99
application circuits of ht48c70 f sys (khz) c1 c2 crystal ceramic resonator 800000ok ok 600000ok ok 400000ok ok 358000ok ok 200000ok ok 100000ok 640 300pf 300pf ok 480 300pf 300pf ok 455 300pf 300pf ok 400 300pf 300pf ok ht48cxx/ht48rxx 28 25th may 99
instruction set summary mnemonic description flag affected instruction cycle arithmetic add a,[m] addm a,[m] add a,x adc a,[m] adcm a,[m] sub a,x sub a,[m] subm a,[m] sbc a,[m] sbcm a,[m] daa [m] add data memory to acc add acc to data memory add immediate data to acc add data memory to acc with carry add acc to register with carry subtract immediate data from acc subtract data memory from acc subtract data memory from acc with result in data memory subtract data memory from acc with carry subtract data memory from acc with carry with result in data memory decimal adjust acc for addition with result in data memory z,c,ac,ov z,c,ac,ov z,c,ac,ov z,c,ac,ov z,c,ac,ov z,c,ac,ov z,c,ac,ov z,c,ac,ov z,c,ac,ov z,c,ac,ov c 1 1 (1) 1 1 1 (1) 1 1 1 (1) 1 1 (1) 1 (1) logic operation and a,[m] or a,[m] xor a,[m] andm a,[m] orm a,[m] xorm a,[m] and a,x or a,x xor a,x cpl [m] cpla [m] and data memory to acc or data memory to acc exclusive-or data memory to acc and acc to data memory or acc to data memory exclusive-or acc to data memory and immediate data to acc or immediate data to acc exclusive-or immediate data to acc complement data memory complement data memory with result in acc z z z z z z z z z z z 1 1 1 1 (1) 1 (1) 1 (1) 1 1 1 1 (1) 1 increment & decrement inca [m] inc [m] deca [m] dec [m] increment data memory with result in acc increment data memory decrement data memory with result in acc decrement data memory z z z z 1 1 (1) 1 1 (1) ht48cxx/ht48rxx 29 25th may 99
mnemonic description flag affected instruction cycle rotate rra [m] rr [m] rrca [m] rrc [m] rla [m] rl [m] rlca [m] rlc [m] rotate data memory right with result in acc rotate data memory right rotate data memory right through carry with result in acc rotate data memory right through carry rotate data memory left with result in acc rotate data memory left rotate data memory left through carry with result in acc rotate data memory left through carry none none c c none none c c 1 1 (1) 1 1 (1) 1 1 (1) 1 1 (1) data move mov a,[m] mov [m],a mov a,x move data memory to acc move acc to data memory move immediate data to acc none none none 1 1 (1) 1 bit operation clr [m].i set [m].i clear bit of data memory set bit of data memory none none 1 (1) 1 (1) branch jmp addr sz [m] sza [m] sz [m].i snz [m].i siz [m] sdz [m] siza [m] sdza [m] call addr ret ret a,x reti jump unconditionally skip if data memory is zero skip if data memory is zero with data movement to acc skip if bit i of data memory is zero skip if bit i of data memory is not zero skip if increment data memory is zero skip if decrement data memory is zero skip if increment data memory is zero with result in acc skip if decrement data memory is zero with re- sult in acc subroutine call return from subroutine return from subroutine and load immediate data to acc return from interrupt none none none none none none none none none none none none none 2 1 (2) 1 (2) 1 (2) 1 (2) 1 (3) 1 (3) 1 (2) 1 (2) 2 2 2 2 table read tabrdc [m] tabrdl [m] read rom code (current page) to data memory and tblh read rom code (last page) to data memory and tblh none none 2 (1) 2 (1) ht48cxx/ht48rxx 30 25th may 99
mnemonic description flag affected instruction cycle miscellaneous nop clr [m] set [m] clr wdt clr wdt1 clr wdt2 swap [m] swapa [m] halt no operation clear data memory set data memory clear watchdog timer pre-clear watchdog timer pre-clear watchdog timer swap nibbles of data memory swap nibbles of data memory with result in acc enter power down mode none none none to,pd to*,pd* to*,pd* none none to,pd 1 1 (1) 1 (1) 1 1 1 1 (1) 1 1 notes: x: 8-bit immediate data m: 7-bit data memory address for ht48c10/ht48c30 m: 8-bit data memory address for ht48c50/ht48c70 a: accumulator i: 0~7 number of bits a: accumulator i: 0~7 number of bits addr: program memory address ? : flag(s) is affected C: flag(s) is not affected *: flag(s) may be affected by the execution status (1) : if a loading to pcl register occurs, the execution cycle of the instructions will be delayed one more cycle (4 system clocks). (2) : if a skip to next instruction occurs, the execution cycle of instructions will be delayed one more cycle (4 system clocks). otherwise the original execution cycles remain unchanged. (3) : (1) or (2) ht48cxx/ht48rxx 31 25th may 99
instruction definition adc a,[m] add data memory and carry to the accumulator description the contents of the specified data memory, accumulator and the carry flag are added simultaneously, leaving the result in the accumulator. operation acc ? acc+[m]+c affected flag(s) tc2 tc1 to pd ov z ac c CCCC ???? adcm a,[m] add the accumulator and carry to data memory description the contents of the specified data memory, accumulator and the carry flag are added simultaneously, leaving the result in the specified data memory. operation [m] ? acc+[m]+c affected flag(s) tc2 tc1 to pd ov z ac c CCCC ???? add a,[m] add data memory to the accumulator description the contents of the specified data memory and the accumulator are added. the result is stored in the accumulator. operation acc ? acc+[m] affected flag(s) tc2 tc1 to pd ov z ac c CCCC ???? add a,x add immediate data to the accumulator description the contents of the accumulator and the specified data are added, leaving the result in the accumulator. operation acc ? acc+x affected flag(s) tc2 tc1 to pd ov z ac c CCCC ???? ht48cxx/ht48rxx 32 25th may 99
addm a,[m] add the accumulator to the data memory description the contents of the specified data memory and the accumulator are added. the result is stored in the data memory. operation [m] ? acc+[m] affected flag(s) tc2 tc1 to pd ov z ac c CCCC ???? and a,[m] logical and accumulator with data memory description data in the accumulator and the specified data memory perform a bitwise logical_and operation. the result is stored in the accumulator. operation acc ? acc and [m] affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC and a,x logical and immediate data to the accumulator description data in the accumulator and the specified data perform a bitwise logi- cal_and operation. the result is stored in the accumulator. operation acc ? acc and x affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC andm a,[m] logical and data memory with the accumulator description data in the specified data memory and the accumulator perform a bitwise logical_and operation. the result is stored in the data memory. operation [m] ? acc and [m] affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC ht48cxx/ht48rxx 33 25th may 99
call addr subroutine call description the instruction unconditionally calls a subroutine located at the indicated address. the program counter increments once to obtain the address of the next instruction, and pushes this onto the stack. the indicated address is then loaded. program execution continues with the instruction at this ad- dress. operation stack ? pc+1 pc ? addr affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC clr [m] clear data memory description the contents of the specified data memory are cleared to zero. operation [m] ? 00h affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC clr [m].i clear bit of data memory description the bit i of the specified data memory is cleared to zero. operation [m].i ? 0 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC clr wdt clear watchdog timer description the wdt and the wdt prescaler are cleared (re-counting from zero). the power down bit (pd) and time-out bit (to) are cleared. operation wdt and wdt prescaler ? 00h pd and to ? 0 affected flag(s) tc2 tc1 to pd ov z ac c C C 00CCCC ht48cxx/ht48rxx 34 25th may 99
clr wdt1 preclear watchdog timer description the td, pd flags, wdt and the wdt prescaler has cleared (re-counting from zero), if the other preclear wdt instruction has been executed. only execu- tion of this instruction without the other preclear instruction sets the indi- cated flag which implies that this instruction has been executed and the to and pd flags remain unchanged. operation wdt and wdt prescaler ? 00h* pd and to ? 0* affected flag(s) tc2 tc1 to pd ov z ac c C C0*0*CCCC clr wdt2 preclear watchdog timer description the to, pd flags, wdt and the wdt prescaler are cleared (re-counting from zero), if the other preclear wdt instruction has been executed. only execu- tion of this instruction without the other preclear instruction sets the indi- cated flag which implies that this instruction has been executed and the to and pd flags remain unchanged. operation wdt and wdt prescaler ? 00h* pd and to ? 0* affected flag(s) tc2 tc1 to pd ov z ac c C C0*0*CCCC cpl [m] complement data memory description each bit of the specified data memory is logically complemented (1s comple- ment). bits which previously contained a one are changed to zero and vice-versa. operation [m] ? [ m] affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC ht48cxx/ht48rxx 35 25th may 99
cpla [m] complement data memory and place result in the accumulator description each bit of the specified data memory is logically complemented (1s comple- ment). bits which previously contained a one are changed to zero and vice-versa. the complemented result is stored in the accumulator and the contents of the data memory remain unchanged. operation acc ? [ m] affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC daa [m] decimal-adjust accumulator for addition description the accumulator value is adjusted to the bcd (binary code decimal) code. the accumulator is divided into two nibbles. each nibble is adjusted to the bcd code and an internal carry (ac1) will be done if the low nibble of the accumulator is greater than 9. the bcd adjustment is done by adding 6 to the original value if the original value is greater than 9 or a carry (ac or c) is set; otherwise the original value remains unchanged. the result is stored in the data memory and only the carry flag (c) may be affected. operation if acc.3~acc.0 >9 or ac=1 then [m].3~[m].0 ? (acc.3~acc.0)+6, ac1= ac else [m].3~[m].0) ? (acc.3~acc.0), ac1=0 and if acc.7~acc.4+ac1 >9 or c=1 then [m].7~[m].4 ? acc.7~acc.4+6+ac1,c=1 else [m].7~[m].4 ? acc.7~acc.4+ac1,c=c affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCC ? dec [m] decrement data memory description data in the specified data memory is decremented by one. operation [m] ? [m]C1 affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC ht48cxx/ht48rxx 36 25th may 99
deca [m] decrement data memory and place result in the accumulator description data in the specified data memory is decremented by one, leaving the result in the accumulator. the contents of the data memory remain unchanged. operation acc ? [m]C1 affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC halt enter power down mode description this instruction stops program execution and turns off the system clock. the contents of the ram and registers are retained. the wdt and prescaler are cleared. the power down bit (pd) is set and the wdt time-out bit (to) is cleared. operation pc ? pc+1 pd ? 1 to ? 0 affected flag(s) tc2 tc1 to pd ov z ac c C C 01CCCC inc [m] increment data memory description data in the specified data memory is incremented by one. operation [m] ? [m]+1 affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC inca [m] increment data memory and place result in the accumulator description data in the specified data memory is incremented by one, leaving the result in the accumulator. the contents of the data memory remain unchanged. operation acc ? [m]+1 affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC ht48cxx/ht48rxx 37 25th may 99
jmp addr directly jump description the contents of the program counter are replaced with the directly-specified address unconditionally, and control is passed to this destination. operation pc ? addr affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC mov a,[m] move data memory to the accumulator description the contents of the specified data memory are copied to the accumulator. operation acc ? [m] affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC mov a,x move immediate data to the accumulator description the 8-bit data specified by the code is loaded into the accumulator. operation acc ? x affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC mov [m],a move the accumulator to data memory description the contents of the accumulator are copied to the specified data memory (one of the data memories). operation [m] ? acc affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC nop no operation description no operation is performed. execution continues with the next instruction. operation pc ? pc+1 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC ht48cxx/ht48rxx 38 25th may 99
or a,[m] logical or accumulator with data memory description data in the accumulator and the specified data memory (one of the data memories) perform a bitwise logical_or operation. the result is stored in the accumulator. operation acc ? acc or [m] affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC or a,x logical or immediate data to the accumulator description data in the accumulator and the specified data perform a bitwise logical_or operation. the result is stored in the accumulator. operation acc ? acc or x affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC orm a,[m] logical or data memory with the accumulator description data in the data memory (one of the data memories) and the accumulator perform a bitwise logical_or operation. the result is stored in the data memory. operation [m] ? acc or [m] affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC ret return from subroutine description the program counter is restored from the stack. this is a two-cycle instruc- tion. operation pc ? stack affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC ht48cxx/ht48rxx 39 25th may 99
ret a,x return and place immediate data in the accumulator description the program counter is restored from the stack and the accumulator loaded with the specified 8-bit immediate data. operation pc ? stack acc ? x affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC reti return from interrupt description the program counter is restored from the stack, and interrupts are enabled by setting the emi bit. emi is the enable master (global) interrupt bit (bit 0; register intc). operation pc ? stack emi ? 1 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC rl [m] rotate data memory left description the contents of the specified data memory are rotated one bit left with bit 7 rotated into bit 0. operation [m].(i+1) ? [m].i; [m].i:bit i of the data memory (i=0-6) [m].0 ? [m].7 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC rla [m] rotate data memory left and place result in the accumulator description data in the specified data memory is rotated one bit left with bit 7 rotated into bit 0, leaving the rotated result in the accumulator. the contents of the data memory remain unchanged. operation acc.(i+1) ? [m].i; [m].i:bit i of the data memory (i=0-6) acc.0 ? [m].7 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC ht48cxx/ht48rxx 40 25th may 99
rlc [m] rotate data memory left through carry description the contents of the specified data memory and the carry flag are rotated one bit left. bit 7 replaces the carry bit; the original carry flag is rotated into the bit 0 position. operation [m].(i+1) ? [m].i; [m].i:bit i of the data memory (i=0-6) [m].0 ? c c ? [m].7 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCC ? rlca [m] rotate left through carry and place result in the accumulator description data in the specified data memory and the carry flag are rotated one bit left. bit 7 replaces the carry bit and the original carry flag is rotated into bit 0 position. the rotated result is stored in the accumulator but the contents of the data memory remain unchanged. operation acc.(i+1) ? [m].i; [m].i:bit i of the data memory (i=0-6) acc.0 ? c c ? [m].7 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCC ? rr [m] rotate data memory right description the contents of the specified data memory are rotated one bit right with bit 0 rotated to bit 7. operation [m].i ? [m].(i+1); [m].i:bit i of the data memory (i=0-6) [m].7 ? [m].0 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC ht48cxx/ht48rxx 41 25th may 99
rra [m] rotate right-place result in the accumulator description data in the specified data memory is rotated one bit right with bit 0 rotated into bit 7, leaving the rotated result in the accumulator. the contents of the data memory remain unchanged. operation acc.(i) ? [m].(i+1); [m].i:bit i of the data memory (i=0-6) acc.7 ? [m].0 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC rrc [m] rotate data memory right through carry description the contents of the specified data memory and the carry flag are together rotated one bit right. bit 0 replaces the carry bit; the original carry flag is rotated into the bit 7 position. operation [m].i ? [m].(i+1); [m].i:bit i of the data memory (i=0-6) [m].7 ? c c ? [m].0 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCC ? rrca [m] rotate right through carry-place result in the accumulator description data of the specified data memory and the carry flag are rotated one bit right. bit 0 replaces the carry bit and the original carry flag is rotated into the bit 7 position. the rotated result is stored in the accumulator. the contents of the data memory remain unchanged. operation acc.i ? [m].(i+1); [m].i:bit i of the data memory (i=0-6) acc.7 ? c c ? [m].0 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCC ? ht48cxx/ht48rxx 42 25th may 99
sbc a,[m] subtract data memory and carry from the accumulator description the contents of the specified data memory and the complement of the carry flag are subtracted from the accumulator, leaving the result in the accumu- lator. operation acc ? acc+[ m]+c affected flag(s) tc2 tc1 to pd ov z ac c CCCC ???? sbcm a,[m] subtract data memory and carry from the accumulator description the contents of the specified data memory and the complement of the carry flag are subtracted from the accumulator, leaving the result in the data memory. operation [m] ? acc+[ m]+c affected flag(s) tc2 tc1 to pd ov z ac c CCCC ???? sdz [m] skip if decrement data memory is zero description the contents of the specified data memory are decremented by one. if the result is zero, the next instruction is skipped. if the result is zero, the following instruction, fetched during the current instruction execution, is discarded and a dummy cycle is replaced to get the proper instruction (two cycles). otherwise proceed with the next instruction (one cycle). operation skip if ([m]C1)=0, [m] ? ([m]C1) affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC sdza [m] decrement data memory and place result in acc, skip if zero description the contents of the specified data memory are decremented by one. if the result is zero, the next instruction is skipped. the result is stored in the accumulator but the data memory remains unchanged. if the result is zero, the following instruction, fetched during the current instruction execution, is discarded and a dummy cycle is replaced to get the proper instruction (two cycles). otherwise proceed with the next instruction (one cycle). operation skip if ([m]C1)=0, acc ? ([m]C1) affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC ht48cxx/ht48rxx 43 25th may 99
set [m] set data memory description each bit of the specified data memory is set to one. operation [m] ? ffh affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC set [m].i set bit of data memory description bit i of the specified data memory is set to one. operation [m].i ? 1 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC siz [m] skip if increment data memory is zero description the contents of the specified data memory are incremented by one. if the result is zero, the following instruction, fetched during the current instruc- tion execution, is discarded and a dummy cycle is replaced to get the proper instruction (two cycles). otherwise proceed with the next instruction (one cycle). operation skip if ([m]+1)=0, [m] ? ([m]+1) affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC siza [m] increment data memory and place result in acc, skip if zero description the contents of the specified data memory are incremented by one. if the result is zero, the next instruction is skipped and the result is stored in the accumulator. the data memory remains unchanged. if the result is zero, the following instruction, fetched during the current instruction execution, is discarded and a dummy cycle is replaced to get the proper instruction (two cycles). otherwise proceed with the next instruction (one cycle). operation skip if ([m]+1)=0, acc ? ([m]+1) affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC ht48cxx/ht48rxx 44 25th may 99
snz [m].i skip if bit i of the data memory is not zero description if bit i of the specified data memory is not zero, the next instruction is skipped. if bit i of the data memory is not zero, the following instruction, fetched during the current instruction execution, is discarded and a dummy cycle is replaced to get the proper instruction (two cycles). otherwise proceed with the next instruction (one cycle). operation skip if [m].i 1 0 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC sub a,[m] subtract data memory from the accumulator description the specified data memory is subtracted from the contents of the accumula- tor, leaving the result in the accumulator. operation acc ? acc+ [m]+1 affected flag(s) tc2 tc1 to pd ov z ac c CCCC ???? subm a,[m] subtract data memory from the accumulator description the specified data memory is subtracted from the contents of the accumula- tor, leaving the result in the data memory. operation [m] ? acc+[ m]+1 affected flag(s) tc2 tc1 to pd ov z ac c CCCC ???? sub a,x subtract immediate data from the accumulator description the immediate data specified by the code is subtracted from the contents of the accumulator, leaving the result in the accumulator. operation acc ? acc+ x+1 affected flag(s) tc2 tc1 to pd ov z ac c CCCC ???? ht48cxx/ht48rxx 45 25th may 99
swap [m] swap nibbles within the data memory description the low-order and high-order nibbles of the specified data memory (one of the data memories) are interchanged. operation [m].3~[m].0 ? [m].7~[m].4 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC swapa [m] swap data memory-place result in the accumulator description the low-order and high-order nibbles of the specified data memory are interchanged, writing the result to the accumulator. the contents of the data memory remain unchanged. operation acc.3~acc.0 ? [m].7~[m].4 acc.7~acc.4 ? [m].3~[m].0 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC sz [m] skip if data memory is zero description if the contents of the specified data memory are zero, the following instruc- tion, fetched during the current instruction execution, is discarded and a dummy cycle is replaced to get the proper instruction (two cycles). otherwise proceed with the next instruction (one cycle). operation skip if [m]=0 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC sza [m] move data memory to acc, skip if zero description the contents of the specified data memory are copied to the accumulator. if the contents is zero, the following instruction, fetched during the current instruction execution, is discarded and a dummy cycle is replaced to get the proper instruction (two cycles). otherwise proceed with the next instruction (one cycle). operation skip if [m]=0, acc ? [m] affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC ht48cxx/ht48rxx 46 25th may 99
sz [m].i skip if bit i of the data memory is zero description if bit i of the specified data memory is zero, the following instruction, fetched during the current instruction execution, is discarded and a dummy cycle is replaced to get the proper instruction (two cycles). otherwise proceed with the next instruction (one cycle). operation skip if [m].i=0 affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC tabrdc [m] move the rom code (current page) to tblh and data memory description the low byte of rom code (current page) addressed by the table pointer (tblp) is moved to the specified data memory and the high byte transferred to tblh directly. operation [m] ? rom code (low byte) tblh ? rom code (high byte) affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC tabrdl [m] move the rom code (last page) to tblh and data memory description the low byte of rom code (last page) addressed by the table pointer (tblp) is moved to the data memory and the high byte transferred to tblh directly. operation [m] ? rom code (low byte) tblh ? rom code (high byte) affected flag(s) tc2 tc1 to pd ov z ac c C C CCCCCC xor a,[m] logical xor accumulator with data memory description data in the accumulator and the indicated data memory perform a bitwise logical exclusive_or operation and the result is stored in the accumulator. operation acc ? acc xor [m] affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC ht48cxx/ht48rxx 47 25th may 99
xorm a,[m] logical xor data memory with the accumulator description data in the indicated data memory and the accumulator perform a bitwise logical exclusive_or operation. the result is stored in the data memory. the zero flag is affected. operation [m] ? acc "xor" [m] affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC xor a,x logical xor immediate data to the accumulator description data in the the accumulator and the specified data perform a bitwise logical exclusive_or operation. the result is stored in the accumulator. the zero flag is affected. operation acc ? acc xor x affected flag(s) tc2 tc1 to pd ov z ac c CCCCC ? CC ht48cxx/ht48rxx 48 25th may 99
characteristic curves figure a: typical rc oscillator frequency vs. temperature figure b: typical rc oscillator frequency vs. v dd ht48cxx/ht48rxx 49 25th may 99
figure c: i oh vs. v oh , v dd =3v figure d: i oh vs. v oh , v dd =5v ht48cxx/ht48rxx 50 25th may 99
figure e: i ol vs. v ol , v dd =3v figure f: i ol vs. v ol , v dd =5v ht48cxx/ht48rxx 51 25th may 99
figure g: v dd vs. r ph in max. figure h: v dd vs. r ph in min. ht48cxx/ht48rxx 52 25th may 99
figure i: v ih, v il vs. v dd in C40c to +85c ht48cxx/ht48rxx 53 25th may 99
figure j: typical i stb vs. v dd watchdog enabled figure k: typical i stb vs. v dd watchdog disabled ht48cxx/ht48rxx 54 25th may 99
figure l: maximum i dd vs. frequency (external clock C40 c to 85 c ) ht48cxx/ht48rxx 55 25th may 99
ht48cxx/ht48rxx 56 25th may 99
figure m: operating voltage-operating frequency (crystal) ht48cxx/ht48rxx 57 25th may 99
figure n: operating voltage vs. t wdt ht48cxx/ht48rxx 58 25th may 99
copyright ? 1999 by holtek semiconductor inc. the information appearing in this data sheet is believed to be accurate at the time of publication. however, holtek assumes no responsibility arising from the use of the specifications described. the applications mentioned herein are used solely for the purpose of illustration and holtek makes no warranty or representation that such applications will be suitable without further modification, nor recommends the use of its products for application that may present a risk to human life due to malfunction or otherwise. holtek reserves the right to alter its products without prior notification. for the most up-to-date information, please visit our web site at http://www.holtek.com.tw. holtek semiconductor inc. (headquarters) no.3 creation rd. ii, science-based industrial park, hsinchu, taiwan, r.o.c. tel: 886-3-563-1999 fax: 886-3-563-1189 holtek semiconductor inc. (taipei office) 5f, no.576, sec.7 chung hsiao e. rd., taipei, taiwan, r.o.c. tel: 886-2-2782-9635 fax: 886-2-2782-9636 fax: 886-2-2782-7128 (international sales hotline) holtek microelectronics enterprises ltd. rm.711, tower 2, cheung sha wan plaza, 833 cheung sha wan rd., kowloon, hong kong tel: 852-2-745-8288 fax: 852-2-742-8657 ht48cxx/ht48rxx 59 25th may 99


▲Up To Search▲   

 
Price & Availability of HT48R50-28SDIP-B-0

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X